<!DOCTYPE html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <link rel="stylesheet" th:href="@{/css/font.css}"/>
    <link rel="stylesheet" th:href="@{/css/xadmin.css}"/>

    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{/js/xadmin.js}"></script>

    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th style="display: none;">ID</th>
                            <th>商品名称</th>
                            <th>单价</th>
                            <th>商品类型</th>
                            <th>供应商</th>
                            <th>产地</th>
                            <th>生产日期</th>
                            <th>数量</th>
                        </tr>
                        </thead>
                        <tbody>

                        <tr th:each="item : ${items}">
                            <td th:text="${item.id}" style="display: none;"></td>
                            <td th:text="${item.name}"></td>
                            <td th:text="${item.price}"></td>
                            <td th:text="${itemTypeService.getNameById(item.itemtypeId)}"></td>
                            <td th:text="${producerService.getNameById(item.producerId)}"></td>
                            <td th:text="${item.place}"></td>
                            <td th:text="${#dates.format(item.date,'yyyy-MM-dd')}"></td>
                        </tr>
                        <tr th:each="item1 : ${procurementItemList}">
                            <td th:text="${item1.number}"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

</html>
